package com.fuwenhao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author fwh
 * @email fuwenhao594@163.com
 * @date 2019/7/25 下午5:03
 */
@RestController
public class ConsumerController {
    @Autowired
    private HelloService helloService;

    /**
     * 测试调用-熔断和 ribbon
     *
     * @return java.lang.String
     * @author fwh [2019/7/25 && 下午5:43]
     */
    @GetMapping("/ribbon-consumer")
    public String helloTest() {
        final String hello = helloService.hello();
        return hello;
    }
}
